package com.lqz.tools;

public class DataBaseConnPojo {

	private String dataBaseName;
	private String dataBaseUrl="jdbc:mysql://127.0.0.1:3306/";
	private String dataBaseFullUrl;
//	private String dataBase="jdbc:mysql://127.0.0.1:3306/"+dataBaseName+"?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=true";
	private String dataBaseDriver="mysql";
	private String userName="root";
	private String userPassword="123456";
	private String tableName;
	private boolean importUtil = false; // 是否需要导入包java.util.*
	private boolean importSql = false; // 是否需要导入包java.sql.*
	private String[] colnames; // 列名数组
	private String[] jdbcColNames;
	private String[] javaColTypes; // java列名类型数组
	private String[] jdbcColTypes; // 数据库列名类型数组
	private int[] colSizes; // 列名大小数组
	private int colSize;		//列的个数
	private String projectPath;  // 获取项目路径
	private String packagePath;  // 包路径
	private String packageName;  // 包名称
	private String pagePath;		//页面路径
	private String sqlTablePK;		//表的主键（在数据库中）
	private String javaTablePK;		//表的主键（在java中对应）
	private String sqlTablePKType;	//表的主键类型（数据库中对应）
	private String javaTablePKType;	//表的主键类型（java中对应）
	
	
	
	//实体类
	private String pojoName;		//实体类名称
	private String pojoPackagePath;	//实体类路径
	private String pojoPackageName;	//实体类包名
	
	
	
	
	
	
	
	
	
	public String[] getColnames() {
		return colnames;
	}
	public void setColnames(String[] colnames) {
		this.colnames = colnames;
	}
	public String[] getJavaColTypes() {
		return javaColTypes;
	}
	public void setJavaColTypes(String[] javaColTypes) {
		this.javaColTypes = javaColTypes;
	}
	public String[] getJdbcColTypes() {
		return jdbcColTypes;
	}
	public void setJdbcColTypes(String[] jdbcColTypes) {
		this.jdbcColTypes = jdbcColTypes;
	}
	public int[] getColSizes() {
		return colSizes;
	}
	public void setColSizes(int[] colSizes) {
		this.colSizes = colSizes;
	}
	public String getDataBaseDriver() {
		if(dataBaseDriver.equalsIgnoreCase("mysql")){
			return "com.mysql.jdbc.Driver";
		}else if(dataBaseDriver.equalsIgnoreCase("sqlserver")){
			return "com.microsoft.sqlserver.jdbc.SQLServerDriver";
		}else if(dataBaseDriver.equalsIgnoreCase("oracle")){
			return "";
		}else {
			return "";
		}
	}
	public void setDataBaseDriver(String dataBaseDriver) {
		this.dataBaseDriver = dataBaseDriver;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPassword() {
		return userPassword;
	}
	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	public String getDataBaseName() {
		return dataBaseName;
	}
	public void setDataBaseName(String dataBaseName) {
		this.dataBaseName = dataBaseName;
	}
	public String getDataBaseUrl() {
		return dataBaseUrl;
	}
	public void setDataBaseUrl(String dataBaseUrl) {
		this.dataBaseUrl = dataBaseUrl;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public String getPackagePath() {
		return packagePath;
	}
	public void setPackagePath(String packagePath) {
		this.packagePath = packagePath;
	}
	public String getDataBaseFullUrl() {
		return dataBaseFullUrl;
	}
	public void setDataBaseFullUrl(String dataBaseFullUrl) {
		this.dataBaseFullUrl = dataBaseFullUrl;
	}
	public int getColSize() {
		return colSize;
	}
	public void setColSize(int colSize) {
		this.colSize = colSize;
	}
	public boolean isImportUtil() {
		return importUtil;
	}
	public void setImportUtil(boolean importUtil) {
		this.importUtil = importUtil;
	}
	public boolean isImportSql() {
		return importSql;
	}
	public void setImportSql(boolean importSql) {
		this.importSql = importSql;
	}
	public String getProjectPath() {
		return projectPath;
	}
	public void setProjectPath(String projectPath) {
		this.projectPath = projectPath;
	}
	public String getPackageName() {
		return packageName;
	}
	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}
	public String getPagePath() {
		return pagePath;
	}
	public void setPagePath(String pagePath) {
		this.pagePath = pagePath;
	}
	public String getPojoName() {
		return pojoName;
	}
	public void setPojoName(String pojoName) {
		this.pojoName = pojoName;
	}
	public String getPojoPackagePath() {
		return pojoPackagePath;
	}
	public void setPojoPackagePath(String pojoPackagePath) {
		this.pojoPackagePath = pojoPackagePath;
	}
	public String getPojoPackageName() {
		return pojoPackageName;
	}
	public void setPojoPackageName(String pojoPackageName) {
		this.pojoPackageName = pojoPackageName;
	}
	public String getSqlTablePK() {
		return sqlTablePK;
	}
	public void setSqlTablePK(String sqlTablePK) {
		this.sqlTablePK = sqlTablePK;
	}
	public String getJavaTablePK() {
		return javaTablePK;
	}
	public void setJavaTablePK(String javaTablePK) {
		this.javaTablePK = javaTablePK;
	}
	public String[] getJdbcColNames() {
		return jdbcColNames;
	}
	public void setJdbcColNames(String[] jdbcColNames) {
		this.jdbcColNames = jdbcColNames;
	}
	public String getSqlTablePKType() {
		return sqlTablePKType;
	}
	public void setSqlTablePKType(String sqlTablePKType) {
		this.sqlTablePKType = sqlTablePKType;
	}
	public String getJavaTablePKType() {
		return javaTablePKType;
	}
	public void setJavaTablePKType(String javaTablePKType) {
		this.javaTablePKType = javaTablePKType;
	}
	
	
}
